﻿using System.IO;

namespace Cms.Application
{
    public class CmsFileInfo : ICmsFileInfo
    {
        private readonly FileInfo _fileInfo;

        public CmsFileInfo(string path)
        {
            _fileInfo = new FileInfo(path);
        }

        public bool Exists
        {
            get { return _fileInfo.Exists; }
        }

        public long Length
        {
            get { return _fileInfo.Length; }
        }
    }
}
